package com.tao.springcloud.service;

import com.tao.springcloud.entities.CommonResult;
import com.tao.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @InterfaceName Provider8001
 * @Author HETAO
 * @Date 2020/5/10 14:47
 */
@Component
@FeignClient("CLOUD-PAYMENT-SERVER")
public interface Provider8001 {
    @GetMapping("payment")
    public CommonResult<Payment> getPaymentById(@RequestParam("id") Long id) ;

    @GetMapping("payment/timeout")
    public String timeout() ;
}
